﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

public class ModuleCreatorWindow : EditorWindow
{
    string moduleName=default(string);

    public ModuleCreatorWindow():base(){
        titleContent = new GUIContent("请输入模块名称");
        this.maxSize = this.minSize = new Vector2(400, 50);
        this.autoRepaintOnSceneChange = false;
        /*Vector2 siz = new Vector2(Screen.height, Screen.width);
        this.position = new Rect(siz/2,siz);*/
    }


    [MenuItem("Tools/CreateLogicModule")]
    public static void CreatorModule()
    {
        EditorWindow.GetWindow(typeof(ModuleCreatorWindow));
    }

    private void OnGUI()
    {

        GUILayout.BeginVertical();
       // GUILayout.Space(10);
        moduleName = EditorGUILayout.TextField("LogicModule Class Name", moduleName, GUILayout.MinWidth(350) );
        if (GUILayout.Button("确定"))
        {
           
        }


    }
    
}
